/**
 * 
 */
package defi5;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Logan
 *
 */
public class Indices {
	
	private List<Point> indices;
	
	public Indices() {
		indices = new ArrayList<Point>();
		indices.add(new Point(0,0));
		indices.add(new Point(306,472));
		indices.add(new Point(452,323));
		indices.add(new Point(99,156));
		indices.add(new Point(305,332));
		indices.add(new Point(445,365));
		indices.add(new Point(344,26));
		indices.add(new Point(66,582));
		indices.add(new Point(13,583));
		indices.add(new Point(184,97));
		indices.add(new Point(59,11));
		indices.add(new Point(13,60));
		indices.add(new Point(28,463));
		indices.add(new Point(453,360));
		indices.add(new Point(58,70));
		indices.add(new Point(450,587));
		indices.add(new Point(136,461));
		indices.add(new Point(288,483));
		indices.add(new Point(110,533));
		indices.add(new Point(332,400));
	}
	
	public Boolean contient(Point p) {
		for(Point tmp : indices) {
			if(tmp.equals(p)) {
				return true;
			}
		}
		
		return false;
	}

	/**
	 * Getter pour indices.
	 *
	 * @return the indices
	 */
	public List<Point> getIndices() {
		return indices;
	}

	/**
	 * Setter pour indices.
	 *
	 * @param indices the indices to set
	 */
	public void setIndices(List<Point> indices) {
		this.indices = indices;
	}

}
